<?php
//包含数据库配置文件
include '../public/dbconfig.php';
//包含函数库文件
include '../public/func.inc.php';
//调用函数
$link = conn();
?>
		<?php
		include './topuser.php';
		?>
		<div class="two">
			<div class="luntan">论坛</div>
			<div class="daohang">导航论坛<select><option></option></select></div>
		</div>
		<div class="sousuo">
				<span style="padding-left:20px;"><input type="text" name="text" placeholder="请搜索内容" style="width:300px"></span>
				<span><select><option value="帖子">帖子</select></span>
				<a href="" style="color:black;font-size:20px;">热搜</a>
				<a href="" style="color:blue;">活动</a>
				<a href="" style="color:blue;">交友</a>
				<a href="" style="color:blue;">discuz</a>
				
		</div>
		<div class="xiaofangzi">
			<img src="./resource/images/2016-11-03_153452.jpg"><a href="">设置</a>
			<img src="./resource/images/2016-10-29_162601.jpg"><a href="">个人资料</a>
			
		</div>
		<div class="shezibankuan">
		
			<div class="jutixiang">
				<ul>
					<li>设置</li>
					<li>修改头像</li>
					<li>个人资料</li>
					<li>积分</li>
					<li>用户组</li>
					<li>隐私筛选</li>
					<li>密码安全</li>
					<li>访问推广</li>
				</ul>
		
		
			</div>
			<div class="jiben"><a href="">基本资料</a></div>
			<div class="lianxi"><a href="">联系方式</a></div>
			<div  class="jiaoyu"><a href="">教育情况</a></div>
			<div class="gongzuo"><a href="">工作情况</a></div>
			<div class="geren"><a href="">个人信息</a></div>
			<?php
			$sql = "select username,pic,tel,edu,sign from user";
			$res = mysqli_query($link,$sql);
			$uinfo = mysqli_fetch_assoc($res);
			?>
			
			<div class="biaoge">
				<form action="usersz" method="post" enctype="multipart/form-data">
				<table width="595" height="450">
					<tr>
						<td>用户名</td>
						<td><?php session_start(); echo $_SESSION['uname'];?></td>
						<td></td>
						
					
					
					
					</tr>
					<tr>
						<td>真实姓名</td>
						<td><input type="text" name="username" value="<?php echo $uinfo[username];?>"></td>
						<td><select name="">
						<option value="1" selected>公开</option>
						<option value="2" selected>不公开</option>
						</select></td>
					
					
					</tr>
					
					<tr>
						<td>头像</td>
						<td>
						<input type="file" name="pic"><img src="../uploads/<?php echo $uinfo['pic'];?> " width="50" height="50">
						</td>
						<td>
						<select name="">
						<option value="1" selected>公开</option>
						<option value="2" selected>不公开</option>
						</select>
						</td>
					</tr>
						<td>手机号</td>
						<td>
						<input type="text" name="tel" value="<?php echo $uinfo['tel'];?>">
						</td>
						<td><select name="">
						
						<option value="1" selected>公开</option>
						<option value="2" selected>不公开</option>
						</select></td>
					
					
					</tr>
					<tr>
						<td>学历</td>
						<td>
						<select name="edu">
						
						<option value="1" >&nbsp;&nbsp;小学</option>
						<option value="2" >&nbsp;&nbsp;中学</option>
						<option value="3" >&nbsp;&nbsp;大学</option>
						<option value="4" >&nbsp;&nbsp;研究生</option>
						<option value="4" >&nbsp;&nbsp;硕士</option>
						
						</select>
						
						</td>
						<td><select name=""><option value="1" selected>公开</option><option value="2" selected>不公开</option></select></td>
					
					</tr>
					<tr>
						<td>个性签名</td>
						<td>
						<textarea name="sign" rows="6" cols="40" style="resize:none"><?php echo $uinfo['sign'];?></textarea>
						
						</td>
						<td><select name="">
						<option value="1" selected>公开</option>
						<option value="2" selected>不公开</option>
						</select></td>
					
					</tr>
					
					
					<tr>
						<td></td>
						<td><input type="image" src="./resource/images/2016-11-03_201028.jpg"></td>
					</tr>
				
				
				
				
				</table>
				
				</form>
			
			</div>
			
			
			
		</div>
		<div class="yewei">
		
		
		
		
				
				<div class="yeweiyou" style="float:right">
					<ul>
						
						<li style="color:black;">站点统计</li>
						<li style="color:black;">举报</li>
						<li>Archiver</li>
						<li style="color:black;">手机版</li>
						<li style="color:black;" >小黑屋</li>
						<li style="color:black;">Comsenz Inc.<img src="./resource/images/2016-11-03_195749.jpg"></li>
						<p>GMT+8,2015-7-24&nbsp;13:00,processed&nbsp;in&nbsp;1.243252(s),&nbsp;17quenes.</p>
					
					</ul>
				
				
				</div>
				<div>
					<ul>
						<li>Powered$nbsp;<span style="color:black;">DISSOUZ!</span>X3.2</li>
						<li>&copy2001-2013 &nbsp;Comsenzinc.</li>
					
					</ul>
					
				
				</div>
			
			</div>
	
	
	






